<extend name="common" />
<block name="main">
<div class="bd">
  <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">签名文件内容</h3>
        </div>
        <div class="panel-body">
            <code style="padding:2px 0;">{$signContent}</code>
        </div>
    </div>
    <div class="panel panel-primary">
        <div class="panel-heading">审核信息</div>
        <div class="panel-body">
          <if condition="$apply['status'] eq 'progress'">
            <form method="post" class="form-horizontal" action="{:U('Home/Index/applyDetail')}">
              <input type="hidden" name="apply_id" value="{$apply.apply_id}">
              <div class="form-group">
                <label class="col-lg-2 control-label">申请备注</label>
                <div class="col-lg-5">
                    <textarea rows="4" class="form-control" autocomplete="off" readonly>{$apply.create_memo}</textarea>
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">是否通过</label>
                <div class="radio col-lg-5">
                  <label>
                      <if condition="$apply['status'] eq success">
                      <input type="radio" name="status" value="success" checked/> 通过
                      <else />
                      <input type="radio" name="status" value="success"/> 通过
                      </if>
                    </label>
                    <label>
                      <if condition="$apply['status'] eq fail">
                        <input type="radio" name="status" value="fail" checked/> 拒绝
                      <else />
                        <input type="radio" name="status" value="fail"/> 拒绝
                      </if>
                    </label>
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">审核备注</label>
                <div class="col-lg-5">
                  <textarea rows="4" class="form-control" name="memo" autocomplete="off">{$apply.memo}</textarea>
                </div>
              </div>
              <div class="form-group">
                <div class="col-lg-5 col-lg-offset-2">
                    <button type="submit" class="btn btn-primary btn-submit col-lg-4">确定并保存</button>
                </div>
            </div>
            </form>
            <else />
              <p class="col-lg-12 over-hide"><label class="w-100">申请备注：</label><span>{$apply.create_memo}</span></p>
              <p class="col-lg-12 over-hide"><label class="w-100">审核备注：</label><span>{$apply.memo}</span></p>
              <p class="col-lg-12 over-hide"><label class="w-100">审核状态：</label><span>
              <switch name="apply.status" >
              <case value="success" break="1">审核通过</case>
              <case value="fail" break="1">审核未通过</case>
              </switch>
              </span></p>
            </if>
        </div>
    </div>
</div>
</block>